package my.test.mediatorpattern.source;

/**
 * @author:许玉康
 * @Date: 2019/7/14 16:24
 */
public class ConcreteMediator extends  Mediator {

    @Override
    public void doSomething1() {
        //调用同事类的方法，只要是public方法都可以调用
        super.c1.selfMethod1();
        super.c2.selfMethod2();
    }

    @Override
    public void doSomething2() {
        super.c1.selfMethod1();
        super.c2.selfMethod2();
    }
}
